<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>微店优惠券礼包配置列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<link href="cxcalendar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
<script language="javascript" src="../script/Calendar-new.js"></script>
<script charset="utf-8" type="text/javascript" src="../lib/kindeditor/kindeditor-min.js"></script>
</head>
<body>
<div class="container">
    <div class="flow">
        <div class="itemtitle">
            <h3><{if $smarty.get.act=='add'}>添加<{else}>编辑<{/if}>任务</h3>
            <ul>
                <li><a href="?m=micro_shop&s=task_list.php"><span>任务列表</span></a></li>
            </ul>
        </div>
    </div>
    <div class="h35"></div>
    
	<form name="form" method="post">
	<input type="hidden" name="m" value="<{$smarty.get.m}>">
    <input type="hidden" name="s" value="<{$smarty.get.s}>">
    <input name="id" type="hidden" id="id" value="<{$de.id}>">
    <table class="table">
        <thead>
            <tr>
                <th class="partition" colspan="99">任务</th>
            </tr>
        </thead>
        <tbody>
        <tr>
            <td width="100">名称</td>
            <td>
            <input name="title" id="title" type="text" class="w350" value="<{$de.title}>">
            </td>
        </tr>
        
        <tr>
             <td>任务规则</td>
             <td>
             	 <script>
					var editor1;
					KindEditor.ready(function(R) {
						editor1 = R.create('textarea[name="rule_detail"]', {
							resizeType : 1,
							allowPreviewEmoticons : false,
							allowImageUpload : false,
							filterMode : false,
							langType :'<{$config.language}>',
						});
					});
				 </script>
                 <textarea style="width:60%; height:300px" name="rule_detail"><{$de.rule_detail}></textarea>
             </td>
		</tr>
        
        <tr>
             <td>描述</td>
             <td>
             	 <script>
					var editor2;
					KindEditor.ready(function(K) {
						editor2 = K.create('textarea[name="description"]', {
							resizeType : 1,
							allowPreviewEmoticons : false,
							allowImageUpload : false,
							filterMode : false,
							langType :'<{$config.language}>',
						});
					});
				 </script>
                 <textarea style="width:60%; height:150px" name="description"><{$de.description}></textarea>
             </td>
		</tr>
        
        <tr>
            <td>状态</td>
            <td>
            <input type="radio" name="status" value="1" id="open" <{if $de.status==1}>checked="checked"<{/if}>/><label for="open">开启</label>
            <input type="radio" name="status" value="0" id="close" <{if $de.status==0}>checked="checked"<{/if}>/><label for="close">关闭</label>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
            <input class="submit" type="submit" value="提交">
            <input name="act" type="hidden" value="<{if !$de.id}>save<{else}>edit<{/if}>">
            </td>
        </tr>
        </tbody>
    </table>
    </form>
</div>
</body>
</html>